﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace WeiBOAPI.Sina
{
    public class SinaMessage
    {
        [XmlElement("created_at")]
        public string CreatedTime { get; set; }

        [XmlElement("id")]
        public string Id { get; set; }

        [XmlElement("text")]
        public string Text { get; set; }

        [XmlElement("thumbnail_pic")]
        public string Thumbnail_pic { get; set; }

        [XmlElement("bmiddle_pic")]
        public string Bmiddle_pic { get; set; }

        [XmlElement("original_pic")]
        public string Original_pic { get; set; }

        [XmlElement("user")]
        public SinaUserInfo User { get; set; }

        [XmlElement("source")]
        public Source Source { get; set; }


        [XmlElement("retweeted_status")]
        public SinaMessage Retweeted { get; set; }

        private Count count;
        public Count Count
        {
            get
            {
                return count;
            }
            set
            {
                if (count != value)
                {
                    count = value;
                }
            }
        }

    }
    public class Count
    {
        [XmlElement("id")]
        public string ID { get; set; }

        [XmlElement("comments")]
        public int Comments { get; set; }

        [XmlElement("rt")]
        public int Rt { get; set; }
    }
    public class Source
    {
        [XmlElement("a")]
        public string Name { get; set; }
    }
}
